/* 
 * File:   AlgorytmB1.h
 * Author: arkadiusz
 *
 * Created on 3 marzec 2009, 16:07
 */

#ifndef _ALGORYTMB1_H
#define	_ALGORYTMB1_H

#include<vector>
#include<iostream>
#include "math.h"
namespace AlgorytmB1 {

    const double MAX_ERROR = 1.0;
    const double Maxerror = 0.1;

    class Point {
    public:
        int i;
        int j;
        double x;
        double y;
        double z;
        bool w;

        Point(int i, int j, double x, double y, double z) {
            this->i = i;
            this->j = j;
            this->x = x;
            this->y = y;
            this->z = z;
            this->w = false;
        }

        void setw() {
            this->w = true;
        }

        double dist(double A, double B, double C, double D) {
            double pom = fabs(A * x + B * y + C * z + D);
            return pom;
        }

        void druk() {
            std::cout << "xxxx " << x << "  " << y << "   " << std::endl;
        }
    };

    class Para {
    public:
        int k1;
        int k2;

        Para(int k1, int k2) {
            this->k1 = k1;
            this->k2 = k2;
        }

    };


    void Analiza();
    bool line(int k1, int k2, double A, double B, double C);

    void inclist();

    void Main();
    //========================================================================



        /*

          public static void main(String[] args) {

            //  System.out.println("Wierzcho�ki\n");
              inclist();
              Analiza();
              for(int i=0; i<list.size();i++)
              {
                Point p=list.get(i);
                if(p.w) p.druk();
              }
           //   System.out.println("end \n");
              return;
          }
         */


    //=============================================================================
}

#endif	/* _ALGORYTMB1_H */

